import "module-alias/register";
import moduleAlias from "module-alias";
import path from "path";
import fs from "fs";
import { staticPath } from "./utils/const";
import { operateVideoFile } from "./utils/operateVideoFile";
import { operateImg } from "./utils/operateImgFile";
// import {checkExt, changeDuration, HandlingErrorVideoScreensnap} from "./service/dataInit"
moduleAlias.addAliases({
    "@": path.resolve(__dirname, "./"),
});


// HandlingErrorVideoScreensnap()


// import "./init";
// import "./model/init";
// 当添加字段的时候使用
// MyFileDir.sync({ alter: true })
// truncate table MyFileDir // mysql语句， 让其id从1开始
require("./routes/index");


